package com.code.train.respCode;

/**
 * RespCode
 * 全局响应信息
 * @param
 * @author 南汉卿
 * @return
 * @date 2025/8/3 19:12
 */

import lombok.Getter;

@Getter
public enum RespCode {

    SUCCESS("200", "操作成功"),
    FAIL("500", "操作失败"),
    UNAUTHORIZED("401", "未认证"),
    FORBIDDEN("403", "无权限"),
    NOT_FOUND("404", "资源不存在"),
    VALIDATION_ERROR("400", "参数校验失败"),
    MOBILE_EXIST("10001", "手机号已经注册");

    private final String code;
    private final String message;

    RespCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}

